#!/usr/bin/env python3
"""
PDF to HTML Converter - Main Entry Point
"""
import sys
import os
from PyQt6.QtWidgets import QApplication

# Add the current directory to the Python path
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))

from ui.main_window import MainWindow

def main():
    """Main function to start the application."""
    # Set application attributes
    app = QApplication(sys.argv)
    app.setApplicationName("PDF to HTML Converter")
    app.setApplicationVersion("1.0.0")
    app.setStyle('Fusion')  # Use Fusion style for consistent look across platforms
    
    # Create and show the main window
    window = MainWindow()
    window.show()
    
    # Start the application event loop
    sys.exit(app.exec())

if __name__ == '__main__':
    main()
